﻿namespace Api.Hubs;

/// <summary>
/// 登录signalr hub
/// </summary>
public class LoginHub : Hub
{
    /// <summary>
    /// 获取连接Id
    /// </summary>
    /// <returns></returns>
    public async Task<string> GetHubConnectionId()
    {
        return await Task.FromResult(Context.ConnectionId);
    }
}
